# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gfold
pkgver=4.0.1
pkgrel=0
pkgdesc="CLI tool to help keep track of Git repositories"
url="https://github.com/nickgerace/gfold"
license="Apache-2.0"
arch="all !s390x !riscv64" # blocked by rust/cargo
makedepends="cargo"
source="https://github.com/nickgerace/gfold/archive/$pkgver/gfold-$pkgver.tar.gz"

prepare() {
	default_prepare

	cargo fetch --locked
}

build() {
	cargo build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/gfold -t "$pkgdir"/usr/bin
}

sha512sums="
0f5066e4608f473c121f4dc4c787f600819229522c8c082a8c213a1aea7e940aba4c21b8b4b05a366a7b0a326b84a16f679664de34a629b964ab1e819a65e29c  gfold-4.0.1.tar.gz
"
